const api = {
	get_sku:'/api/get_sku',
	get_banner: '/api/get_banner',
	get_cate: '/api/get_cate',
	get_like: '/api/get_like',
	get_competitive:'/api/get_competitive',
	get_goods_list:'/api/get_goods_list',
	get_search_list:'/api/get_search_list',
	get_goods_detail:'/api/get_goods_detail',
	get_goods_comment:'/api/get_goods_comment',
	add_cart:'/api/add_cart',
	get_cart_list:'/api/get_cart_list',
	toggle_check_cart:'/api/toggle_check_cart',
	change_cart_num:'/api/change_cart_num',
	remove_cart:'/api/remove_cart',
	check_cart:'/api/check_cart',
	cancel_cart:'/api/cancel_cart',
}
//全选商品
export const cancelCartApi = (data) => {
	return uni.$u.http.post(api.cancel_cart, data)
}
//全选商品
export const checkCartApi = (data) => {
	return uni.$u.http.post(api.check_cart, data)
}
//移除购物车商品
export const removeCartApi = (data) => {
	return uni.$u.http.post(api.remove_cart, data)
}
//购物车数量改变
export const changeCartNumApi = (data) => {
	return uni.$u.http.post(api.change_cart_num, data)
}
//购物车选中/取消选中
export const toggleCheckCartApi = (data) => {
	return uni.$u.http.post(api.toggle_check_cart, data)
}
//购物车列表
export const getCartListApi = (data) => {
	return uni.$u.http.post(api.get_cart_list, data)
}
//获取sku数据
export const getskuApi = (data) => {
	return uni.$u.http.post(api.get_sku, data)
}
// 轮播图
export const bannerApi = (data) => {
	return uni.$u.http.post(api.get_banner, data)
}
// 分类
export const cateApi = (data) => {
	return uni.$u.http.post(api.get_cate, data)
}
// 猜你喜欢
export const likeApi = (data) => {
	return uni.$u.http.post(api.get_like, data)
}
// 获取精选
export const competitiveApi = (data) => {
	return uni.$u.http.post(api.get_competitive, data)
}
// 商品列表
export const goodslistApi = (data) => {
	return uni.$u.http.post(api.get_goods_list, data)
}
// 获取搜素列表
export const searchlistApi = (data) => {
	return uni.$u.http.post(api.get_search_list, data)
}
// 商品详情
export const goodsdetailApi = (data) => {
	return uni.$u.http.post(api.get_goods_detail, data)
}
// 查看评论
export const goodscommentApi = (data) => {
	return uni.$u.http.post(api.get_goods_comment, data)
}
//加入购物车
export const addcartApi = (data) => {
	return uni.$u.http.post(api.add_cart, data)
}